<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>订单管理</title>
    <?php require 'templates/common/head.html'; ?>
</head>
<body>
<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center"><h3 class="panel-title">订单列表</h3></div>
        <div class="panel-body">
            <form action="" method="get">
                <input type="hidden" name="m" value="order"/>
                <input type="text" name="orderNum" value="<?=$orderNum?>" placeholder="订单号查询">&nbsp;&nbsp;
                <button type="submit"  class="btn btn-default btn-success ">&nbsp;查 询&nbsp;</button>
            </form>
        </div>
        <div class="panel-body">
            <div class="panel-group"   id="accordion" role="tablist" aria-multiselectable="true">
                <table class="table table-stripted table-bordered table-hover">
                    <tr>
                        <th>创建时间</th>
                        <th>订单号</th>
                        <th>微信名</th>
                        <th>支付状态</th>
                        <th>操作</th>
                    </tr>
                    <?php foreach($orders as $v):?>
                    <tr>
                        <td><?=$v['createTime']?></td>
                        <td><?php echo $v['orderNum']; ?></td>
                        <td><?=$v['nickName']?></td>
                        <td><?=$v['pay_status']?></td>
                        <td><a href="index.php?m=order&a=detail&id=<?=$v['id']?>">查看详情</a></td>
                    </tr>
                    <?php endforeach; ?>
                </table>
            </div>
    </div>
    <div><?= $page->showpage();?></div>
</div>

</div>
<?php require 'templates/common/foot.html'; ?>
</body>
</html>